//
//  BaseModel.m
//  Customer
//
//  Created by tangang on 2017/8/28.
//  Copyright © 2017年 tangang. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

//+ (NSDictionary *)mj_replacedKeyFromPropertyName{
//    return @{
//             @"ID"
//             };
//}

- (NSString *)orderStatus:(OrderStatus)status{
    if (status==OrderStatusWaitPay) {
        return @"等待支付";
    }else if (status==OrderStatusSubscribe){
        return @"已预约";
    }else if (status==OrderStatusWaitConsumption){
        return @"等待消费";
    }else if (status==OrderStatusWait){
        return @"待接单";
    }else if (status==OrderStatusMaking){
        return @"制作中";
    }else if (status==OrderStatusWaitRider){
        return @"等待骑手接单";
    }else if (status==OrderStatusRider){
        return @"骑手已接单，待收货";
    }else if (status==OrderStatusDistribution){
        return @"配送中";
    }else if (status==OrderStatusDone){
        return @"已完成待评价";
    }else if (status==OrderStatusDelivery){
        return @"已送达";
    }else if (status==OrderStatusAppraise){
        return @"已评价";
    }else if (status==OrderStatusRefundSuccess){
        return @"退款成功";
    }else if (status==OrderStatusCancle){
        return @"已取消";
    }
    return nil;
}

@end
